import axios from '@/utils/axios'

export function getApi() {
  return axios({
    url: '/swagger/api/getApiList',
    method: 'get'
  })
}

export function getApiV2() {
  return axios({
    url: '/swagger/api/v2/getApiList',
    method: 'get'
  })
}

export function getErrorStatusList() {
  return axios({
    url: '/swagger/api/getErrorStatusList',
    method: 'get'
  })
}

export function getTablesViewList() {
  return axios({
    url: '/swagger/api/getTablesViewList',
    method: 'get'
  })
}

export function exportEolinkApi(data) {
  return axios({
    url: '/swagger/api/exportEolinkApi',
    method: 'post',
    data
  })
}

export function exportDocApi(data) {
  return axios({
    url: '/swagger/api/exportApi',
    method: 'post',
    data
  })
}
